package com.hlj.ncp.warehouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hlj.ncp.warehouse.entity.ColdStorageThreshold;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 冷库温湿度阈值设置 数据层
 */
@Mapper
public interface ColdStorageThresholdMapper extends BaseMapper<ColdStorageThreshold> {
    
    /**
     * 根据仓库ID和区域查询阈值设置
     * 
     * @param warehouseId 仓库ID
     * @param storageArea 冷库区域
     * @return 阈值设置
     */
    ColdStorageThreshold selectThresholdByWarehouseAndArea(@Param("warehouseId") Long warehouseId, @Param("storageArea") String storageArea);
} 